﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace BlogApi.Models
{
    /// <summary>
    /// 文章的TAG表
    /// </summary>
    public class ArticleTag:BaseEntity
    {
        /// <summary>
        /// 文章TAG名称
        /// </summary>
        public string TagName { get; set; }
        /// <summary>
        /// 该TAG的用户ID
        /// </summary>
        [ForeignKey(nameof(User))]
        public Guid UserId { get; set; }
        public User User { get; set; }
    }
}
